﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Reflection;
using System.IO;

namespace BulldogCMS.Core.Tests.Helper
{
    public class ReflectionHelper
    {
        public static XDocument GetXMLFromAssembly(string name)
        {
            Stream xmlResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(name);
            if (xmlResourceStream != null)
            {
                return XDocument.Load(xmlResourceStream);
            }
            return null;
        }
    }
}
